<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_sms.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mall_sms.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'smsID',
                    footer: "Foots",
                    cnName: '短信模板',
                    name: 'Mall_sms',
                    url: "/Sms/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"e":"","templateName":"","smsTemplate":"","modifier":"","modifyDate":"","modifyID":"","createDate":"","createID":"","creator":"","isAvailable":""},
                editFormOptions: [
                    [{"title":"模板样例","field":"e","type":"textarea",colSize:12},
                    ],
                    [{"title":"短信模板名称","required":true,"field":"templateName","type":"text"},],
                    [{"title":"短信标题","field":"smsTitile","type":"text"}],
                    [{"title":"设置短信内容","field":"smsTemplate","type":"textarea",colSize:12},],
                    [{"title":"是否默认强制","required":true,"field":"isDefault","type":"switch"},],
                ],
                searchFormFields: {"templateName":"","templateName":"","creator":"","createDate":"","modifyDate":""},
                searchFormOptions: [[{"title":"模板样例","field":"templateExample","type":"textarea",width:800,colSize:13},{"title":"短信模板名称","field":"templateName","type":"like"},
                { "title": "创建时间", "field": "createDate", "type": "datetime" }, ]],
                columns: [{field:'smsID',title:'短信主键',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'templateName',title:'模板名称',type:'string',width:220,align:'left',sortable:true},
                       {field:'smsTemplate',title:'短信模板',type:'string',width:220,align:'left'},
                       
                       {field:'isAvailable',title:'是否可用',type:'sbyte',width:90,align:'left'},
                       //{field:'spare3',title:'扩展字段1',type:'string',width:220,align:'left'},
                       //{field:'spare4',title:'扩展字段1',type:'string',width:220,align:'left'},
                       //{field:'spare5',title:'扩展字段1',type:'string',width:220,align:'left'},
                       //{field:'spare6',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare7',title:'扩展字段1',type:'string',width:220,align:'left'},
                       //{field:'spare8',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare9',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare10',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare11',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare12',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare13',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare14',title:'扩展字段1',type:'string',width:220,align:'left'},
                      // {field:'spare15',title:'扩展字段1',type:'string',width:220,align:'left'},
                       {field:'isDefault',title:'是否默认强制',type:'sbyte',width:120,require:true,align:'left'},
                       {field:'isDelete',title:'是否删除',type:'int',width:120,require:true,align:'left'},
                       {field:'smsTitile',title:'短信标题',type:'string',width:120,align:'left'},
                       {field:'templateCode',title:'模板代码',type:'string',width:120,align:'left'},
                       {field:'templateExample',title:'模板样例',type:'string',width:120,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:180,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:180,align:'left'}
                       
                       ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
